package com.sky.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ArticleTreeListVO implements Serializable {
    private static final long serialVersionUID = 1L;
    // @ApiModelProperty("tagId")
    // private Integer id;
    @ApiModelProperty("tag名称")
    private String tag;
    @ApiModelProperty("tag包含的文章")
    private List<ArticleTreeVO> children;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ArticleTreeVO implements Serializable {
        private static final long serialVersionUID = 1L;
        @ApiModelProperty("文章Id")
        private Integer articleId;
        @ApiModelProperty("文章标题名称")
        private String title;
    }
}
